<script type="text/javascript">
	$(document).ready(function() {
		deleteRecord();
		editRecord();
		addRecord();
		disappearingContent10000( ".after-delete-info" );
		showAllCheckAll();
	});
</script>

<?php $colspan = ' colspan="5" '; ?>
<!-- 
<pre><?php echo var_dump($this->studiesTypesDelete); ?></pre>
 -->
<div class="after-delete-info"><?php echo $this->delete; ?></div>
<div class="attention"><?php echo $this->attention; ?></div>

<p class="title">
	Rodzaje studiów
	<a href="<?php echo $this->url(array('controller'=>'studiestype','action'=>'add', 'module'=>'technical'));?>" class="add">
		<input type="button" name="button" value="Dodaj nowy" />
	</a> 
</p><!-- title -->

<form method="post" class="sorround-table" action="<?php echo $this->url(array('controller'=>'studiestype','action'=>'mass', 'module'=>'technical')); ?>">
	

	<div  class="showAll">
	<table>
		<thead>
			<tr>
				<th <?php echo $colspan; ?>>
					<select name="massAction">
						<option value="">Masowe działania</option>
						<option value="deleteAll">usuń</option>
					</select><!-- #massAction -->
					<input type="submit" name="submitMassAction" value="Zastosuj" />
				</th>
			</tr>
		</thead>
		<tfoot>
			<tr>
				<th <?php echo $colspan; ?>>
					<select name="massAction">
						<option value="">Masowe działania</option>
						<option value="deleteAll">usuń</option>
					</select><!-- #massAction -->
					<input type="submit" name="submitMassAction" value="Zastosuj" />
				</th>
			</tr>
		</tfoot>
		<tbody>
			<tr>
				<th class="checkbox"><input type="checkbox" class="all" name="checkedAll" value="0" /></th>
				<th>Skrót</th>
				<th>Rodzaj studiów</th>
				<th>Tryb studiowania</th>
				<th>Stopień naukowy</th>
			</tr>
		<?php if( isset($this->empty) ) { ?>
			<tr><td <?php echo $colspan; ?>><?php echo $this->empty; ?></td></tr>
		<?php } ?>
		<?php foreach($this->studiesTypes as $studiesType) : ?>
			<tr>
				<td class="checkbox"><input type="checkbox" name="id[]" class="all"
					value="<?php echo $studiesType['id']; ?>" /></td>
				<td><?php echo $studiesType['short']; ?> 
					<p class="sub-menu">
						<a href="<?php echo $this->url(array('controller'=>'studiestype','action'=>'edit', 'id'=>$studiesType['id'], 'name'=>$studiesType['short'], 'editflag' => 'true', 'module'=>'technical'));?>" class="edit"> 
						 	Edytuj 
						 </a>
					  |  <a href="<?php echo $this->url(array('controller'=>'studiestype','action'=>'delete', 'id'=>$studiesType['id'], 'name'=>$studiesType['short'], 'jsflag' => 'false', 'module'=>'technical'));?>" class="delete"> 
					 		Usuń 
					 	 </a>
					</p>
				</td>
			
				<td><?php echo $studiesType['mode']; ?></td>
				<td><?php echo $studiesType['degree']; ?></td>
			</tr>
		<?php endforeach; ?>	
			<tr>
				<th class="checkbox"><input type="checkbox"  class="all" name="checkedAll" value="0" /></th>
				<th>Skrót</th>
				<th>Rodzaj studiów</th>
				<th>Tryb studiowania</th>
				<th>Stopień naukowy</th>
			</tr>
		</tbody>		
	</table>
	</div> <!-- #showAll -->
	
</form><!-- #sorround-table -->
<div  class="form-edit">
<div id="dialog-form" title="Edycja rodzaju studiów">
</div>
<div id="add-dialog-form" title="Dodawanie nowego rodzaju studiów">
</div>

</div>

<?php
$operationStatus = $this->operationStatus;
$operationDesignation = $this->operationDesignation;
//$deleteStatus = $this->deleteStatus;
//$deleteRecordDesignation = $this->deleteRecordDesignation;
//$addStatus = $this->addStatus;
//$addRecordDesignation = $this->addRecordDesignation;
?>



<script type="text/javascript"> 
$(document).ready(function(){ 
	var operationStatus = '<?php echo $operationStatus; ?>';
	var operationDesignation = '<?php echo $operationDesignation; ?>';
	displayConfirmAlert(operationStatus,operationDesignation.bold());

}); 
</script>
	
<pre>
<?php ?>
</pre>
	
	
	
	
	
	